﻿//using System;
//using System.Net;
//using System.Windows;
//using System.Windows.Controls;
//using System.Windows.Documents;
//using System.Windows.Ink;
//using System.Windows.Input;
//using System.Windows.Media;
//using System.Windows.Media.Animation;
//using System.Windows.Shapes;

//namespace TheOliver.Controls
//{
//    public class BaseTextEffect : UserControl
//    {
//        TextBox _textblock;

//        public BaseTextEffect()
//        {
//            _textblock = new TextBox();

//            this.Content = _textblock;
//        }

//        public TextWrapping TextWrapping
//        {
//            get { return (TextWrapping)GetValue(TextWrappingProperty); }
//            set { SetValue(TextWrappingProperty, value); }
//        }

//        private static void OnValueChanged(object sender, DependencyPropertyChangedEventArgs args)
//        {
//            TippingText tt = sender as TippingText;
//            tt._timer.Stop();
//            tt._timer.Interval = new TimeSpan(0, 0, 0, 0, tt.TippingSpeedInMilliseconds);
//            tt._currentCharacter = 0;
//            tt._timer.Start();
//            tt._textblock.TextWrapping = tt.TextWrapping;
//            tt._textblock.TextAlignment = tt.TextAlignment;
//        }


//        public static readonly DependencyProperty TextWrappingProperty =
//            DependencyProperty.Register(
//                "TextWrapping",
//                typeof(TextWrapping),
//                typeof(TippingText),
//                new PropertyMetadata(TextWrapping.Wrap, OnValueChanged));

//        public TextAlignment TextAlignment
//        {
//            get { return (TextAlignment)GetValue(TextAlignmentProperty); }
//            set { SetValue(TextAlignmentProperty, value); }
//        }

//        public static readonly DependencyProperty TextAlignmentProperty =
//            DependencyProperty.Register(
//                "TextAlignment",
//                typeof(TextAlignment),
//                typeof(TippingText),
//                new PropertyMetadata(TextAlignment.Center, OnValueChanged));

        
//    }
//}
